const adminRoutesNext = [
  {
    path: '/workbench',
    name: 'workbench',
    component: () => import('@/views/workbench/index.vue'),
    meta: {
      title: '工作台',
      icon: 'House',
      active: 'workbench'
    }
  },
  {
    path: '/customer',
    name: 'customer',
    component: () => import('@/views/customerManage/index.vue'),
    meta: {
      title: '客户管理',
      icon: 'User'
    },
    redirect: {
      name: 'customerList'
    },
    children: [
      {
        path: 'list',
        name: 'customerList',
        component: () => import('@/views/customerManage/CustomerListForAdmin.vue'),
        meta: {
          title: '客户列表',
          active: 'customerList'
        }
      },
      {
        path: 'list/detail',
        name: 'customerDetail',
        hidden: true,
        component: () => import('@/views/customerManage/CustomerDetailForAdmin.vue'),
        meta: {
          title: '客户详情',
          active: 'customerList'
        }
      },
      {
        path: 'list/detail/orderdetail',
        name: 'OrderDetail',
        hidden: true,
        component: () => import('@/views/customerManage/CustomerDetailOrderDetailForAdmin.vue'),
        meta: {
          title: '订单详情',
          active: 'customerDetail'
        }
      }
    ]
  },
  {
    path: '/feeCenter',
    name: 'feeCenter',
    component: () => import('@/views/feeCenter/index.vue'),
    meta: {
      title: '费用中心',
      icon: 'Money'
    },
    redirect: {
      name: 'orderList'
    },
    children: [
      {
        path: 'orderList/detail',
        name: 'orderDetail',
        hidden: true,
        component: () => import('@/views/feeCenter/OrderDetailForAdmin.vue'),
        meta: {
          title: '订单详情',
          active: 'orderList'
        }
      },
      {
        path: 'voucherList',
        name: 'voucherList',
        component: () => import('@/views/feeCenter/VoucherList.vue'),
        meta: {
          title: '算力券账单',
          active: 'voucherList'
        }
      },
      {
        path: 'Revenuestatement',
        name: 'Revenuestatement',
        component: () => import('@/views/feeCenter/Revenuestatement.vue'),
        meta: {
          title: '收益账单',
          active: 'Revenuestatement'
        }
      },
      {
        path: 'RevenueDetail/detail',
        name: 'RevenueDetail',
        hidden: true,
        component: () => import('@/views/feeCenter/RevenueDetail.vue'),
        meta: {
          title: '收益账单详情',
          active: 'RevenueDetail'
        }
      },
      {
        path: 'orderList/detail',
        name: 'orderDetail',
        hidden: true,
        component: () => import('@/views/feeCenter/OrderDetailForAdmin.vue'),
        meta: {
          title: '订单详情',
          active: 'orderList'
        }
      },
    ]
  },
  {
    path: '/message',
    name: 'message',
    hidden: true,
    component: () => import('@/views/message/index.vue'),
    meta: {
      title: '消息中心'
    }
  },
  {
    path: '/logger',
    name: 'logger',
    component: () => import('@/views/logger/index.vue'),
    meta: {
      title: '操作日志',
      icon: 'Document',
      active: 'logger'
    }
  },
  {
    path: '/nextManage',
    name: 'nextManage',
    component: () => import('@/views/nextManage/indexview.vue'),
    meta: {
      title: '二代管理',
      icon: 'Setting',
      active: 'nextManageList'
    },
    redirect: {
      name: 'nextManageList'
    },
    children: [
      {
        path: 'nextManageList',
        name: 'nextManageList',
        component: () => import('@/views/nextManage/index.vue'),
        meta: {
          title: '二代列表',
          icon: 'Setting',
          active: 'nextManageList'
        }
      },
      {
        path: 'nextManageList/detail',
        name: 'nextDetail',
        hidden: true,
        component: () => import('@/views/nextManage/NextDetail.vue'),
        meta: {
          title: '二代详情',
          active: 'nextManageList'
        }
      }
      
    ]
  }
];

export default adminRoutesNext;
